﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class PlayerActionManager : MonoBehaviour {

	void Start()
	{
		OrderController.Instance.OnPlayerRoundStart += HandleOnPlayerRoundStart;
	}

	public void PopUpCards()
	{
		List<Card> selectedCardsList = GetComponent<UIPlayerManager>().SelectedCard;

		Card[] selectedCardsArray = selectedCardsList.ToArray();

		CardsType type;
		if (CardRules.PopEnable (selectedCardsArray, out type)) 
		{
			
		}
	}

	void HandleOnPlayerRoundStart(bool val)
	{
		//TODO active player action buttons
	}


}
